package com.phone580.app.model;

import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;

import org.w3c.dom.Element;
import org.xml.sax.SAXException;

import com.phone580.app.entity.LogoutEntity;

public class LogoutModel extends BaseModel {
	
	public LogoutEntity parseLogout(String xml) throws ParserConfigurationException, SAXException, IOException {
		LogoutEntity entity = new LogoutEntity();
		Element root = getDomRootElement(xml);
		entity.setSuccess(Boolean.valueOf(getContent(root, "success")));
		entity.setMessage(getContent(root, "message"));
		entity.setResvalue(getContent(root, "resvalue"));
		return entity;
	}
}
